//
//  PersonalTableViewCell.m
//  TestApplication
//
//  Created by Hanlingyu on 16/9/17.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "PersonalTableViewCell.h"
#import "PersonalChannelView.h"
#import "PersonalViewModel.h"
@interface PersonalTableViewCell ()



@end



@implementation PersonalTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = [UIColor colorWithWhite:0.917 alpha:1];
        [self createView];
    }
    return self;
}

- (void)createView {
    
    PersonalChannelView *cellView = [[PersonalChannelView alloc] init];
    cellView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:cellView];
    _cellView = cellView;
    
}


- (void)setPersonalViewModel:(PersonalViewModel *)personalViewModel {
    _personalViewModel = personalViewModel;
    _cellView.frame = _personalViewModel.backViewFrame;
    _cellView.personalViewModel = _personalViewModel;
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
